import request from '@/utils/request'

// 查询加油站油类型中间表列表
export function listPetrolOil(query) {
  return request({
    url: '/oil/petrolOil/list',
    method: 'get',
    params: query
  })
}

// 查询加油站油类型中间表详细
export function getPetrolOil(id) {
  return request({
    url: '/oil/petrolOil/' + id,
    method: 'get'
  })
}

// 新增加油站油类型中间表
export function addPetrolOil(data) {
  return request({
    url: '/oil/petrolOil',
    method: 'post',
    data: data
  })
}

// 修改加油站油类型中间表
export function updatePetrolOil(data) {
  return request({
    url: '/oil/petrolOil',
    method: 'put',
    data: data
  })
}

// 删除加油站油类型中间表
export function delPetrolOil(id) {
  return request({
    url: '/oil/petrolOil/' + id,
    method: 'delete'
  })
}
